package com.xyp.comm.model;

import java.io.Serializable;

/**
 * @author xyp
 * @date 2019-11-05 10:41
 * @description
 * @version: 1.0
 */
public class Response<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    private String statusCode;
    private T result;
    private String msg;

    public Response(){
        this.statusCode = "200";
        this.msg = "ok";
    }

    public Response(T t){
        this.result = t;
        this.statusCode = "200";
        this.msg = "ok";
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
